package lion.prototol;

import java.io.IOException;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import com.fasterxml.jackson.core.JsonParseException;
import com.fasterxml.jackson.databind.JsonMappingException;

public class ProtocolUtil {

	private static Logger logger = LoggerFactory.getLogger(ProtocolUtil.class);

	public static void main(String[] args) throws JsonParseException, JsonMappingException, IOException {
		logger.info("------------protocol start--------------");
		String protocolPath = "E:\\protocols";
		GeneratorJava.generate(protocolPath);
		GeneratorLua.generate(protocolPath);
		logger.info("------------protocol end----------------");
	}

}
